php get id from url

26

$path = parse_url($url, PHP_URL_PATH);
$pathFragments = explode('/', $path);
$end = end($pathFragments);
$name = strval($_GET['name']);

Comments

Submit
0 Comments